package com.study.config;

import com.study.pojo.User;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean
    public User user(){
        User user = new User();
        user.setId(2).setName("自定义注解").setAge(2).setSex("男");
        return user;
    }
}
